video loopback for webuiと遊ぶ
Step
web UI
回す
scriptにvideo loopbackがある
input_directoryに動画を入れる
where?
Path(input_dir)
os.getcwd()したら/stable-diffusion-webui
../data(=/data)がwindowsのstable-diffusion-webui-docker\data
https://gyazo.com/b70dc498018e899962794fa879860609
code:powershell
webui-docker-auto-1 | self.read_image_resize(image_path_listi) webui-docker-auto-1 | IndexError: list index out of range
It looks like this is because you don't have a picture in your input directory.
?
code:py
assert input_dir.exists()
if input_dir.is_file():
extract_dir = output_dir / 'input_frames'
extract_dir.mkdir()
os.system(f"ffmpeg -i {input_dir} {extract_dir / '%07d.png'}")
input_dir = extract_dir
image_list = get_image_paths(input_dir)
image_n = len(image_list)
if you set a file, images are generated
\stable-diffusion-webui-docker\data\videos_output\230227_041800\output_frames
loop contents are
Loop1: original file
Loop2: original file blended generated image
Loop3 original file blended generated image(higher alpha)
In docker
$ apt-get install ffmpeg